package com.yanfan.maintain.service;


import com.yanfan.energy.domain.*;

import java.util.List;

/**
 * 设备维修表(EquipmentRepair)表服务接口
 *
 * @author makejava
 * @since 2023-03-13 17:55:00
 */
public interface EquipmentRepairService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    EquipmentRepair queryById(Long id);

    /**
     * 分页查询
     *
     * @param equipmentRepair 筛选条件
     * @return 查询结果
     */
    List<EquipmentRepair> queryByPage(EquipmentRepair equipmentRepair);

    /**
     * 查询维修记录列表
     *
     * @param equipmentRepair
     * @return
     */
    List<EquipmentRepair> listByztGuid(EquipmentRepair equipmentRepair);

    /**
     * 新增数据
     *
     * @param equipmentRepair 实例对象
     * @return 实例对象
     */
    EquipmentRepair insert(EquipmentRepair equipmentRepair);

    /**
     * 修改数据
     *
     * @param equipmentRepair 实例对象
     * @return 实例对象
     */
    EquipmentRepair update(EquipmentRepair equipmentRepair);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

    DeviceVo deviceDetailById(Long id);

    List<BaseOrderEntity> orderList(BaseDictEntity baseDictEntity);

    List<BaseOrderEntity> deviceTypeList(BaseDictEntity baseDictEntity);

    List<BaseOrderEntity> brandList(BaseDictEntity baseDictEntity);

    int updateRepairImgs(EquipmentRepair repair);

    List<ImageUrl> selectRepairImgs(EquipmentRepair repair);

    int updateConfirmRepairImgs(EquipmentRepair repair);

    List<ImageUrl> selectConfirmRepairImgs(EquipmentRepair repair);
}
